package com.study.gamecube.pojo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;

/**
 * @author peng
 */
@Data
@Entity
@Table(name = "tb_order")
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
public class GameOrder extends BaseEntity implements Serializable {
    private String customer;
    @ManyToMany
    @JoinTable(name = "tb_order_goods")
    @OrderBy("id")
    private List<GameGoods> items;
    @Enumerated
    private OrderState state;
}
